package com.PayUtils.wxpay;


import java.io.InputStream;

/**
 * @Author chihaojie
 * @Description 微信pay配置对象
 * @date 2019/4/23   17:47
 **/

public class WXPayConfigBean extends WXPayConfig {

    public static final String KEY="182006250b4c09247ec02edce69f6a2f";

    //公众账号ID
    public static final String APP_ID="wxa9ddbf53b1f51580";
    //商户号 --微信支付分配的商户号
    public static final String MCH_ID="1529654741";




    @Override
    String getAppID() {
        return APP_ID;
    }

    @Override
    String getMchID() {
        return MCH_ID;
    }

    @Override
    String getKey() {
        return KEY;
    }

    @Override
    InputStream getCertStream() {
        return null;
    }

    @Override
    IWXPayDomain getWXPayDomain() {
      return  new IWXPayDomain(){
            @Override
            public void report(String domain, long elapsedTimeMillis, Exception ex) {

            }

            @Override
            public DomainInfo getDomain(WXPayConfig config) {
                DomainInfo domainInfo=new DomainInfo(WXPayConfig.DOMAIN_API,true);
                return domainInfo;
            }
        };
    }


    public static String getKEY() {
        return KEY;
    }
}
